﻿

namespace DatabaseCore
{
    internal class DBCommon
    {

        ////private readonly string Datasource = AppDomain.CurrentDomain.BaseDirectory + "App.db";
        //private static readonly string SystemDefaultDB = $@"data source={AppDomain.CurrentDomain.BaseDirectory}App.db;version=3;synchronous=normal;journal_mode=WAL;";

        //public static SqlSugarClient GetOpenConnection(DBConfig dBConfig, DbType type)
        //{
        //    var db = new SqlSugarClient(new ConnectionConfig()
        //    {
        //        DbType = type,
        //        ConnectionString = dBConfig.IsDefault ? SystemDefaultDB : dBConfig.Connection,
        //        IsAutoCloseConnection = true,
        //    });

        //    return db;
        //}

    }


}
